<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/1/10
 * Time: 10:19
 */

namespace app\storage\model;


use think\Model;

class MaterielModel extends Model
{
    protected $table = 'iwh_sub_materiel';
    protected $pk = 'uuid';

    public static function getMaterielList(){
        $materielModel = new MaterielModel();
        $materielList = $materielModel->field('sub_materiel_id,sub_materiel_name')->select();
        return count($materielList)? $materielList->toArray():[];
    }
}